DEMO #1: While custom blocks can save us some time, there must be an even better way of reusing code.

In previous lessons, you learned that variables can hold values like a sprite or a string.

Lists also have variable names. A list is a group of values separated by commas and surrounded by square brackets.

  • Click Run and follow the instructions on the stage to guide you through the example.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)